<?php
namespace Modules\ShopApi\Models; 
class ShopTopSearche extends BaseApiModel
{	
	/**
     * @name  热搜列表 
     */
	public function top_search_list($searches_status){
		$model = $this->query();
		if($searches_status == 1){
			$model->where('searches_status',$searches_status);
		}
		$data = $model->select('id','name')
				->orderBy('sort','asc')
				->orderBy('id','desc')
				->where(['status'=>1])
				->get()
				->toArray();	
		return $this->api_success(['data'=>$data]);		
	}
}
